package cn.com.miao.lynx.plugin.storage.properties;

import cn.com.miao.lynx.plugin.storage.constant.OssRegion;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * OssProperties
 *
 * @title: OssProperties
 * @description:
 * @author: dengmiao
 * @create: 2020-01-10 14:39
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = OssProperties.STORAGE_PREFIX)
public class OssProperties {

    /**
     * oss 配置前缀
     */
    public static final String STORAGE_PREFIX = "lynx.storage.oss";
    /**
     * 存储地域
     */
    private OssRegion region;
    /**
     * 授权秘钥Id
     */
    private String accessKeyId;
    /**
     * 授权秘钥Secret
     */
    private String accessKeySecret;
    /**
     * 存储空间名称
     */
    private String bucketName;
    /**
     * Oss存储空间自定义域名
     */
    private String domain;
}
